import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/device_mine_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/device_mine_entity.g.dart';

@JsonSerializable()
class DeviceMineEntity {
	String? msg;
	int? code;
	List<DeviceMineData>? data;

	DeviceMineEntity();

	factory DeviceMineEntity.fromJson(Map<String, dynamic> json) => $DeviceMineEntityFromJson(json);

	Map<String, dynamic> toJson() => $DeviceMineEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceMineData {
	String? createTime;
	DeviceMineDataParams? params;
	int? id;
	int? deviceId;
	int? userId;
	int? status;
	int? operId;
	String? terminalId;
	String? deviceName;
	int? deviceRelationId;
	int? devicePermission;
	DeviceMineDataDevice? device;

	DeviceMineData();

	factory DeviceMineData.fromJson(Map<String, dynamic> json) => $DeviceMineDataFromJson(json);

	Map<String, dynamic> toJson() => $DeviceMineDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceMineDataParams {


	DeviceMineDataParams();

	factory DeviceMineDataParams.fromJson(Map<String, dynamic> json) => $DeviceMineDataParamsFromJson(json);

	Map<String, dynamic> toJson() => $DeviceMineDataParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceMineDataDevice {
	String? updateTime;
	DeviceMineDataDeviceParams? params;
	String? id;
	int? deviceType;
	String? deviceNo;
	String? deviceName;
	String? deviceSn;
	String? deviceTelnum;
	int? deviceGear;
	String? deviceConfig;
	String? heartTime;
	String? devicePosition;
	String? deviceAddress;
	String? deviceQuantity;
	String? deviceVoltage;
	int? deviceModel;
	int? customModelId;

	DeviceMineDataDevice();

	factory DeviceMineDataDevice.fromJson(Map<String, dynamic> json) => $DeviceMineDataDeviceFromJson(json);

	Map<String, dynamic> toJson() => $DeviceMineDataDeviceToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceMineDataDeviceParams {


	DeviceMineDataDeviceParams();

	factory DeviceMineDataDeviceParams.fromJson(Map<String, dynamic> json) => $DeviceMineDataDeviceParamsFromJson(json);

	Map<String, dynamic> toJson() => $DeviceMineDataDeviceParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}